package com.dji.sample.wayline.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("dock_apron")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DockApron {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @JsonProperty("apronName")
    @TableField("apron_name")
    private String apronName;

    @JsonProperty("apronNo")
    @TableField("apron_no")
    private String apronNo;

    @JsonProperty("status")
    private Integer status;

    @JsonProperty("longitude")
    private Double longitude;

    @JsonProperty("latitude")
    private Double latitude;

    @JsonProperty("altitude")
    private Double altitude;

    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

}
